<template>
  <StateEditDialog
    :visible="visible"
    :state="null"
    :module-type="moduleType"
    @update:visible="$emit('update:visible', $event)"
    @success="$emit('success')"
  />
</template>

<script setup lang="ts">
import StateEditDialog from './StateEditDialog.vue'

interface Props {
  visible: boolean
  moduleType: string | null
}

interface Emits {
  (e: 'update:visible', value: boolean): void
  (e: 'success'): void
}

defineProps<Props>()
defineEmits<Emits>()
</script>